package com.sensen.service;

import com.sensen.mapper.UserMapper;
import com.sensen.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/10/2.
 */
@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User findUser(Integer id){
        return userMapper.selectByPrimaryKey(id);
    }

}
